/*本函数用于传参测试*/
int Led_ON(int which)
{
	/*定义指针指向寄存器地址*/
	unsigned int *pGPFCON	= (unsigned int *)0x56000050;
	unsigned int *pGPFDATA	= (unsigned int *)0x56000054;
		
	if(which == 4)
	{
		/*配置引脚*/
		*pGPFCON = 0x100;

	}
	else if(which == 5)
	{
		/*配置引脚*/
		*pGPFCON = 0x400;
	}
	
	/*设置引脚输出电平*/
	*pGPFDATA = 0;
		
	return 0;
}
void Delay(int delay)
{
	while(delay --);
}
int main(void)
{
	/*定义指针指向寄存器地址*/
	unsigned int *pGPFCON	= (unsigned int *)0x56000050;
	unsigned int *pGPFDATA	= (unsigned int *)0x56000054;

	/*配置引脚*/
	*pGPFCON = 0x100;
	/*设置引脚输出电平*/
	*pGPFDATA = 0;
	
	return 0;
}
